.class Llt/noframe/gpsfarmguide/views/FragmentMap$2;
.super Ljava/lang/Object;
.source "FragmentMap.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/Data$OnGuiChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentMap;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentMap;)V
    .locals 0

    .line 200
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onGuiChanged()V
    .locals 3

    .line 203
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$000(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$000(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object v0

    invoke-interface {v0}, Llt/noframe/gpsfarmguide/gui/Gui;->getType()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    .line 204
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    const/4 v1, 0x1

    iput-boolean v1, v0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sprayStarted:Z

    .line 205
    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_0

    .line 207
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getTag()Ljava/lang/Object;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-virtual {v2}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v0, v2}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    .line 208
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$100(Llt/noframe/gpsfarmguide/views/FragmentMap;)Lcom/google/android/gms/ads/AdView;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 210
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    iput-boolean v1, v0, Llt/noframe/gpsfarmguide/views/FragmentMap;->sprayStarted:Z

    :goto_0
    return-void
.end method
